package com.lvluo.jd.api.stock;

import com.lvluo.jd.api.function.IQuery;
import com.lvluo.jd.api.function.OpTuple;

public class Fundamentals {

	public static FundInteger pe_ratio;

	public static FundInteger pb_ratio;

	public static FundInteger revenue;

	@SuppressWarnings("serial")
	public class FundInteger extends Number implements OpTuple<Integer>,
			Comparable<Integer>, IQuery{

		private final int value;

		public FundInteger(int value) {
			this.value = value;
		}

		@Override
		public int compareTo(Integer anotherInteger) {
			return compare(this.value, anotherInteger);
		}

		public int compare(int x, int y) {
			return (x < y) ? -1 : ((x == y) ? 0 : 1);
		}

		@Override
		public int intValue() {
			return value;
		}

		@Override
		public long longValue() {
			return (long) value;
		}

		@Override
		public float floatValue() {
			return (float) value;
		}

		@Override
		public double doubleValue() {
			return (double) value;
		}

		@Override
		public void sector(Object before, Object after) {
			// TODO Auto-generated method stub
			
		}
	}
}
